/**
 * @(#)BaiduBaikeDAO.java, 2013-2-15. Copyright 2013 RENREN, Inc. All rights
 *                         reserved. RENREN PROPRIETARY/CONFIDENTIAL. Use is
 *                         subject to license terms.
 */
package com.wennimei.dao;

import com.wennimei.domain.baidu.Baike;

import net.paoding.rose.jade.annotation.DAO;
import net.paoding.rose.jade.annotation.SQL;

/**
 * @author shichen.feng@renren-inc.com
 */
@DAO
public interface BaiduBaikeDAO {

    @SQL("insert into baidu_baike (id,title,summary,html,add_time) values (:1,:2,:3,:4,now())")
    public void insert(int id, String title, String summary, String html);

    @SQL("select max(id) from baidu_baike")
    public Integer getMaxId();

    @SQL("select * from baidu_baike where title = :1 limit 1")
    public Baike get(String content);
}
